package com.machine.service.tree.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.machine.bean.Tree;
import com.machine.dao.tree.DaoTree;
import com.machine.service.tree.TreeServer;

@Component("treeServerImpl")
public class TreeServerImpl implements TreeServer {
	private DaoTree treeDaoImpl;

	public DaoTree getDaotree() {
		return treeDaoImpl;
	}
	
	@Resource
	public void setDaotree(DaoTree daotree) {
		this.treeDaoImpl = daotree;
	}

	@Override
	public List<Tree> getBeans() {
		List<Tree> beans = treeDaoImpl.getBeans();
		return beans;
	}

}
